<template>
	<hr class="two" />
	<h2>==== Setup Vue3配置入口 ===</h2>

	<!--需要在子组件里声明接收  emits:['hello'] ，不需要在$emit 中挂载 -->
	<Demo @hello="showHelloMsg" msg="hello" school="wust">
		<template v-slot:qwe>
			没事
		</template>
		<template v-slot:asd>
			love you
		</template>
	</Demo>
</template>

<script>
import Demo from "./Demo";

export default {
	name: 'Setup',
	components: {Demo},
	setup() {
		return {
			showHelloMsg(value) {
				alert(`Setup showHelloMsg:${value}`);
			}
		}
	}
}
</script>

<style>
#app {
	font-family: Avenir, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-align: center;
	color: #2c3e50;
	margin-top: 60px;
}
</style>
